GtkColorChooser: Fix selection of colors
authorMatthias Clasen <mclasen@redhat.com>
Thu, 21 Mar 2013 02:17:14 +0000 (22:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Mar 2013 02:21:16 +0000 (22:21 -0400)
Prevent the new window dragging code from interfering with
selection of colors on button release, by handling button
presses we care about instead of letting them bubble up to
the window.
Partial fix for
https://bugzilla.gnome.org/show_bug.cgi?id=695493

gtk/gtkcolorswatch.c

index c6081d7907f1adadc9339f088297f497801fbf5b..8770f19e028fa3f0192936fbcc4d2ebac604ed43 100644 (file)
@@ -483,6 +483,10 @@ swatch_button_press (GtkWidget      *widget,
       g_signal_emit (swatch, signals[ACTIVATE], 0);
       return TRUE;
     }
+  else if (event->button == GDK_BUTTON_PRIMARY)
+    {
+      return TRUE;
+    }
 
   return FALSE;
 }